﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="order.aspx.cs" Inherits="SF.Ucenter.mycenterusers.order" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black" />
	<meta name="format-detection" content="telephone=no" />
	<meta http-equiv="x-dns-prefetch-control" content="on" />
    <title>订单列表</title>
    <script src="js/jquery.js"></script>
    <link href="css/order.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <header id="header" class="u-header clearfix">
            <!--返回按钮根据程序判断来源，返回上一级-->
            <!-- 非微信扫码进入的用户 -->
            <div class="u-hd-left f-left">
                <a href="javascript:history.back();" class="J_backToPrev"><span class="u-icon-px i-hd-back"></span></a>
            </div>
            <span class="u-hd-tit">订单列表</span>
        </header>

        <div id="cart_list">

            <!--特卖会订单-->
            <div class="space10"></div>
            <div class="cartdiv">
                <div class="cartlist clearfix">
                    <!-- 分组品牌开始 -->
                    <%=orderMsg %>
                </div>

                <div class="orderaction clearfix">
                </div>
            </div>
            
        <div style="width:100%;height:30px;"></div>
        </div>
        <div class="space10"></div>
        
        <!--固定在页面底部浮动的购买按钮-->
        <div class="navbar navbar-default navbar-fixed-bottom">
            <div class="container nav-current-box" >
            <asp:Button ID="btnPgUp" runat="server" name="afresh-check" CssClass="btn btn-long btn-purple" data-mars_sead="user_order_list_pgup_btn" Text="上一页" OnClick="btnPgUp_Click" />
            <asp:Button ID="btnPgDn" runat="server" style="float:right" name="afresh-check" CssClass="btn btn-long btn-purple" data-mars_sead="user_order_list_pgup_btn" Text="下一页" OnClick="btnPgDn_Click" />
            <asp:HiddenField ID="hiddenDataNum" runat="server" />
            <asp:HiddenField ID="hiddenPageIndex" runat="server" />
            </div>
        </div>

        <script type="text/javascript">
            //删除订单
            function del(orderId) {
                if (confirm('确认取消订单?')) {
                    $.get("/tools/user_ajax.ashx", { "action": "cancel_order", "orderId": orderId }, function (result) {
                        if (result) {
                            alert("取消订单成功！");
                            window.location.reload();
                        } else {
                            alert("网络繁忙，请稍后重试！");
                        }
                    });
                }
            }
            //支付函数
            function orderBuy(orderId) {
                location.href = "/api/paypage.aspx?orderId=" + orderId;
            }
        </script>
    </form>
</body>
</html>
